package com.mes.entity;

import java.util.Date;

public class BaseEntity {
	protected String id;
	private String orgId;
	private String clientId;
	private String createdBy;
	private Date created;
	private String updatedBy;
	private Date updated;
	private String isActive;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOrgId() {
		return orgId;
	}
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	public String getClientId() {
		return clientId;
	}
	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	public String getUpdatedBy() {
		return updatedBy;
	}
	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}
	public String getIsActive() {
		return isActive;
	}
	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}
	public void setOperatorUser(User user) {
		this.setClientId(user.getClientId());
		this.setOrgId(user.getOrgId());
		this.setCreatedBy(user.getId());
		this.setUpdatedBy(user.getId());
		this.setIsActive("Y");
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getUpdated() {
		return updated;
	}
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	/**
	 * 对象转JSON 必须要有的方法
	 * @return
	 */
	public String getOperatorUser() {
		return "";
	}
}
